package com.moore.mapper;

import com.moore.bean.Apartment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApartmentMapper {
    List<String> findExistingRoomNumbers(@Param("roomNumbers") List<String> roomNumbers, @Param("areaName") String areaName, @Param("communityName") String communityName);

    int addApartment(@Param("apartment") List<Apartment> apartment);

    int addAnApartment(@Param("apartment") Apartment apartment);

    int updateAnApartment(@Param("apartment") Apartment apartment);

    List<String> getBuildings(@Param("apartment") Apartment apartment);

    List<Apartment> getApartments(@Param("apartment") Apartment apartment);

    int getApartmentCount(@Param("apartment") Apartment apartment);

    int updateApartmentStatus(@Param("status") String status, @Param("id") long id);

    int batchPublishApartments(@Param("ids") List<Long> ids);

    List<String> getApartmentsLayout(@Param("areaName") String areaName, @Param("communityName") String communityName);

    List<String> getApartmentsArea(@Param("areaName") String areaName, @Param("communityName") String communityName);

    List<String> getApartmentsRent(@Param("areaName") String areaName, @Param("communityName") String communityName);
}
